package jp.co.kayo.ykmjuku.android.fragment;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class Fragment3 extends Fragment {
    
    public Fragment3(String txt){
        Bundle bundle = new Bundle();
        bundle.putString("param1", txt);
        setArguments(bundle);
    }
    
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.fragment3, container, false);
        
        TextView textView1 = (TextView)root.findViewById(R.id.textView1);
        
        Bundle args = getArguments();
        if(args!=null){
            textView1.setText(args.getString("param1"));
        }
        return root;
    }
}
